﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QunYing.Model
{
  partial  class DeviceRealTimeInfo
    {

      private string _告警信息描述;
      public string 告警信息描述
      {
          get
          {
              if (_告警信息描述 == null)
                  _告警信息描述 = GetDes();
              return _告警信息描述;
          }
      }

      public string GetDes()
      {
          if (this.告警类型 == "通信故障")
              return "通信故障";
          string str = string.Empty;
          if (this._orp告警)
              str += " ORP告警,";
          if (this._ph告警)
              str += "PH告警,";
          if (this._传感器告警)
              str += "温度传感器告警,";
          if (this._反硝器告警)
              str += "反硝器告警,";
          if (this._水位告警)
              str += "水位告警,";
          if (this._水温告警)
              str += "水温告警,";
          if (this._水循环告警)
              str += "水循环告警,";
          if (this._停电告警)
              str += "停电告警,";
          if (this._温控设备告警)
              str += "温控设备告警,";
          if (this._蓄电池告警)
              str += "蓄电池告警,";
          if ((this._氧循环告警))
              str += "氧循环告警,";
          str = str.Trim(',');
          if (string.IsNullOrEmpty(str))
          {
              str = "无告警信息";
          }
          return str;

      }
    }
}
